package org.cuit.epoch.seon.combat;

/**
 * @author Seon
 * @version 1.0
 * @since 2024-09-13
 */
public class CombatClient {
    public static void main(String[] args) {
        TextEditor textEditor = new TextEditor();
        Caretaker caretaker = new Caretaker();

        textEditor.show();
        textEditor.setText("test");
        textEditor.show();

        caretaker.addMemento(textEditor.save());
        textEditor.setText("hello");
        textEditor.show();

        textEditor.restore(caretaker.getMemento(0));
        textEditor.show();
    }
}
